﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UC_Sanpham.ascx.cs" Inherits="Manager_Sanpham1_Controls_UC_Sanpham" %>
<div class="nav_tabs">
    <ul>
        <li>
            <div class="Selected">
                <a href="../SanPham/Sanpham.aspx">Quản lý loại sản phẩm</a></div>
        </li>
        <li>
            <div class="Unselected">
                <a href="../SanPham/Themloaisanpham.aspx">Thêm loại sản phẩm</a></div>
        </li>
    </ul>
</div>
<div class="Clear">
    <br />
</div>
<div class="description">
    <p>
        Quản lý các loại sản phẩm trong danh mục sản phẩm mà bạn chọn.</p>
</div>
<div class="Content1Right-main">
<asp:GridView ID="GVQLSP" runat="server" AutoGenerateColumns="False" CellPadding="4"
    ForeColor="#333333" OnRowCommand="GVQLSP_RowCommand" AllowPaging="True" 
        onpageindexchanging="GVQLSP_PageIndexChanging" PageSize="2">
    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    <Columns>
        <asp:TemplateField HeaderText="Loại sản phẩm">
            <ItemTemplate>
                <asp:HyperLink ID="HyperLink1" NavigateUrl='<%#getUrlLoaisanpham(Eval("Id").ToString()) %>'
                    Text='<%#Eval("Name") %>' runat="server" Font-Underline="false" Font-Bold="true"
                    Font-Size="Large" ForeColor="#035488" />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Số lượng">
            <ItemTemplate>
                <asp:Label ID="Label1" Text='<%#getsoluong(Eval("Id").ToString()) %>' runat="server" />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Hành động">
            <ItemTemplate>
                <%--<p><asp:HyperLink ID="HyperLink2" NavigateUrl='<%#getUrlSuaLoaisanpham(Eval("Id").ToString()) %>' Text="Sửa" runat="server" /></p>--%>
                <asp:Button Text="Sửa" runat="server" ID="btnXoa" CommandArgument='<%#Eval("Id") %>'
                    CommandName="Sua" />
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
    <EditRowStyle BackColor="#999999" />
    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <HeaderStyle BackColor="#0263A1" BorderColor="Black" BorderStyle="Double" BorderWidth="1px"
        Font-Bold="True" Font-Size="Medium" ForeColor="White" Height="40px" />
    <PagerStyle ForeColor="#003366" HorizontalAlign="Center" CssClass="paging" />
    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
    <SortedAscendingCellStyle BackColor="#E9E7E2" />
    <SortedAscendingHeaderStyle BackColor="#506C8C" />
    <SortedDescendingCellStyle BackColor="#FFFDF8" />
    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
</asp:GridView>
</div>
